﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes.util {
    import Classes.*;
    import Classes.effects.*;

    public class EffectsUtil {

        public static function getGlowEffectByAssignment(_arg1:String):String{
            var assignment:* = _arg1;
            var effectsConfig:* = Global.gameSettings.m_effectsConfigXml;
            return (String(effectsConfig.assignment.(@name == assignment)[0].@glowFilter));
        }
        public static function createStagePickEffect(_arg1:String, _arg2:MapResource):void{
            var _local3:StagePickEffect = _arg2.stagePickEffect;
            if (!_local3){
                _local3 = (MapResourceEffectFactory.createEffect(_arg2, EffectType.STAGE_PICK) as StagePickEffect);
                _local3.setPickType(_arg1);
                _local3.float();
            } else {
                _local3.setPickType(_arg1);
                _local3.reattach();
                _local3.float();
            };
            _arg2.stagePickEffect = _local3;
        }

    }
}//package Classes.util 
